﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class Financial_MonthAudit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        BindData();
    }

    public void BindData()
    {
        var year = Convert.ToInt32(DropDownList2.SelectedValue);
        var month = Convert.ToInt32(DropDownList3.SelectedValue);
        var branchID = new BranchBLL().GetBranchIDByLoginName(User.Identity.Name);

        GridView1.DataSource = new FinancialAuditBLL().GetOrderAuditsByBranch(year, month, branchID);
        GridView1.DataBind();
    }

    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}